/*
*  LLAssert.h
*  
*
*  Created by Alexander Trutchenko on 11/02/12.
*  Copyright 2012 Free Team. All rights reserved.
*
*/

#ifndef __LL_Assert_h__
#define __LL_Assert_h__

#include "lid_lib/src/config/LLConfig.h"



#if (LL_TARGET_PLATFORM != LL_PLATFORM_BADA)

// assertion
#include <assert.h>
#define LL_ASSERT(cond)                assert(cond)

#else

#include <FBaseConfig.h>
#include <FBaseSys.h>

#include "lid_lib/src/service/bada/LLAssert_bada.h"

#ifdef _DEBUG
#define LL_ASSERT(cond)  (void)( (!!(cond)) || (ll_badaAssert(__PRETTY_FUNCTION__ , __LINE__ , #cond),0) )
#else
#define LL_ASSERT(cond)  void(0)
#endif /* _DEBUG */

#endif

namespace lidlib {

#ifndef LLAssert
#define LLAssert(cond, msg)         LL_ASSERT(cond)
#endif  // LLAssert

} // namespace lidlib

#endif //__LL_Assert_h__
